<?php
    $augmentation = isset($_GET['augmentation']);
    
    $tab = init($augmentation);
    
    $libelle = '';
    if($augmentation)
    {
        $libelle = '+10%';
    }
    
    echo '<h1>Commandes '. $libelle .'</h1>';
    
    affichage_tableau($tab['contrat']);
?>
<form class="well well-small form-horizontal" method=post action="?">
    <h3>Enregistrement d'une commande</h3>
    <div class="control-group">
      <label class="control-label" for="inputIcon">Contrat N°</label>
      <div class="controls">
        <div class="input-prepend">
          <span class="add-on"><i class="icon-folder-open"></i></span>
          <input class="span2" id="inputIcon" type="text">
        </div>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label" for="inputIcon">Quantité</label>
      <div class="controls">
        <div class="input-prepend">
          <span class="add-on"><i class="icon-plus"></i></span>
          <input class="span2" id="inputIcon" type="text">
        </div>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label" for="inputIcon">Date de livraison</label>
      <div class="controls">
        <div class="input-prepend">
          <span class="add-on"><i class="icon-calendar"></i></span>
          <input class="span2" id="inputIcon" type="text">
        </div>
      </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <button class="btn btn-primary btn-success" type="submit">Enregistrer</button>
        </div>
    </div>
</form>